From 9b2c63d92ff77ebce0f90a7be05437504422bf45 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Sat, 11 Feb 2023 23:37:12 +0100
Subject: feat: Render localized content from sanity

---
 src/routes/[lang=lang]/+page.svelte | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 src/routes/[lang=lang]/+page.svelte

(limited to 'src/routes/[lang=lang]/+page.svelte')

diff --git a/src/routes/[lang=lang]/+page.svelte b/src/routes/[lang=lang]/+page.svelte
new file mode 100644
index 0000000..666aa80
--- /dev/null
+++ b/src/routes/[lang=lang]/+page.svelte
@@ -0,0 +1,17 @@
+<script lang="ts">
+	import Contact, { type ContactModel } from "$components/contact.svelte";
+	import type { PageData } from "./$types";
+
+	export let data: PageData;
+
+	type Model = {
+		contact: ContactModel;
+	};
+
+	const M: Model = {
+		contact: data.contact,
+	};
+	console.log(data);
+</script>
+
+<Contact model={M.contact} />
-- 
cgit v1.3

